package oppsa.controller;


//Variables
public class SubSystem {
	private int sequence;
	private String subsystemName;
	private int seq_Project;
	
	public SubSystem() {
		this.sequence = 0;
		this.subsystemName = "";
		this.seq_Project = 0;
	}
	public SubSystem(int sequence, String subsystemName, int seq_Project) {
		this.sequence = sequence;
		this.subsystemName = subsystemName;
		this.seq_Project = seq_Project;
	}
	
	public SubSystem(SubSystem ss) {
		this.sequence = ss.sequence;
		this.subsystemName = ss.subsystemName;
		this.seq_Project = ss.seq_Project;
	}
	
	//Getters & Setters
	public int getSequence() {
		return sequence;
	}
	public void setSequence(int sequence) {
		this.sequence = sequence;
	}
	public String getSubsystemName() {
		return subsystemName;
	}
	public void setSubsystemName(String subsystemName) {
		this.subsystemName = subsystemName;
	}
	public int getSeq_Project() {
		return seq_Project;
	}
	public void setSeq_Project(int seq_Project) {
		this.seq_Project = seq_Project;
	}
	
	public boolean compareTo(SubSystem ss)
	{
		
		if (this.sequence == ss.sequence && this.seq_Project == ss.seq_Project && this.subsystemName == ss.subsystemName) {
			return true;
		}
		
		return false;
	}
}
